// import axios from '/static/js/axios.js'
// import QS from 'qs'
// import base from './base'

export function saveProductType(data) {
    return axios({
        url: `/product/type`,
        method: 'post',
        data: JSON.stringify(data),
    })
}

export function getProductTypeList() {
    return axios({
        url: `/product/type/all`,
        method: 'get'
    })
}
export function delProductType(id) {
    return axios({
        url: `/product/type/` + id,
        method: 'delete'
    })
}
export function saveProduct(data) {
    return axios({
        url: `/product`,
        method: 'post',
        data: JSON.stringify(data),
    })
}

export function getProductList() {
    return axios({
        url: `/product/all`,
        method: 'get'
    })
}
export function getProductInfoList() {
    return axios({
        url: `/product/info/all`,
        method: 'get'
    })
}
export function delProduct(id) {
    return axios({
        url: `/product/` + id,
        method: 'delete'
    })
}


